import { Action } from '@ngrx/store';

export enum LayoutSiderActionTypes {
    SIDER_IS_COLLAPSED = '[Sider] Is Collapsed',
    SIDER_NOT_COLLAPSED = '[Sider] Not Collapsed',
}

export class SiderIsCollapsed implements Action {
    readonly type = LayoutSiderActionTypes.SIDER_IS_COLLAPSED;
    constructor(public payload: true) {}
}

export class SiderNotCollapsed implements Action {
    readonly type = LayoutSiderActionTypes.SIDER_NOT_COLLAPSED;
    constructor(public payload: false) {}
}

export type LayoutSiderAction = SiderIsCollapsed | SiderNotCollapsed;